.TH std::chrono::locate_zone 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::chrono::locate_zone \- std::chrono::locate_zone

.SH Synopsis
   Defined in header <chrono>
   const std::chrono::time_zone* locate_zone( std::string_view tz_name    \fI(since C++20)\fP
   );

   Convenience function for locating a time zone in the time zone database. Equivalent
   to std::chrono::get_tzdb().locate_zone(tz_name).

.SH Exceptions

   std::runtime_error if the specified time zone cannot be found, or if this is the
   first reference to the time zone database and the time zone database cannot be
   initialized.

.SH Notes

   A call to this function that is the first reference to the time zone database will
   cause it to be initialized.

.SH See also

   locate_zone    locate a time zone with the given name
                  \fI(public member function of std::chrono::tzdb)\fP
   get_tzdb
   get_tzdb_list  accesses and controls the global time zone database information
   reload_tzdb    \fI(function)\fP
   remote_version
   (C++20)
